package com.bite.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloController {
    @RequestMapping("/hello1")
    public String hello(){
        return "hello";
    }

    @RequestMapping(value = "/hello2", method = RequestMethod.GET)
    public String hello2(){
        return "hello2";
    }

    @GetMapping("/hello3")
    public String hello3(){
        return "hello3";
    }




}
